<body class="app" data-ad="true">
<?php $CDN= $this->CommonHelper()->imageDomain();?>
<section class="app-content">
	<section class="page page-index noline" data-plugin-type="info_front">

        <article class="shop-message">
            <dl>
                <dt class="shop-l">
                    <img src="<?php echo "{$CDN}{$this->orgInfo['org_thumb_image']}";?>">
                </dt>
                <dd>
                    <h2 class="sp-title"><?php echo $this->orgInfo['org_title'];?>配餐/商城<span><?php echo $this->orgInfo['org_level'];?></span></h2>
                    <div class="sp-notice" id="marquee">
                        <div><span>公告：<?php echo $this->orgInfo['org_advice'];?></span></div>
                    </div>
                </dd>
            </dl>
            <a class="ico-arr ico-search-grey btn-shop-search" href="javascript:;"></a>
            <a class="btn-collect" href="javascript:collect('<?php echo $this->org_id;?>');">收 藏</a>
        </article>
        <div class="bw">
            <ul class="prod-nav zoom">
                <li><a href="<?php echo "/organization/vMerchant/{$this->org_id}" ?>">餐品/商品</a></li>
                <li><a href="<?php echo "/organization/vSeller/{$this->org_id}"?>" class="on">商 家</a></li>
            </ul>
        </div>

        <div class="shop-ct-block seller-info-ct">
            <dl>
                <dt>联系人</dt>
                <dd><a href="javascript:;" class="btn-yel btn-service fr">客 服</a><?php echo $this->orgInfo['org_contact_name'];?></dd>
            </dl>
            <dl>
                <dt>地 址</dt>
                <dd><?php echo $this->orgInfo['org_address'];?>
                    <!--  img src="images/temp/map.jpg" class="p-map"-->
                </dd>
            </dl>
            <dl>
                <dt>商家特色</dt>
                <dd><?php echo $this->orgInfo['org_features'];?></dd>
            </dl>
            <dl>
                <dt>商家简介</dt>
                <dd><?php echo $this->orgInfo['org_description'];?></dd>
            </dl>
            <dl>
                <dt>现场直播</dt>
                <dd><img src="<?php echo $this->orgInfo['org_live'];?>" class="p-video"></dd>
            </dl>
            <dl>
                <dt>商家资质</dt>
                <dd>
                	<?php 
                		$v_imgs=array();
                		$v_imgs[]=$this->orgInfo['org_img1'];
                		$v_imgs[]=$this->orgInfo['org_img2'];
                		$v_imgs[]=$this->orgInfo['org_img3'];
                		$v_imgs[]=$this->orgInfo['org_img4'];
                		$v_imgs[]=$this->orgInfo['org_img5'];
                		$v_imgs[]=$this->orgInfo['org_img6'];
                		$v_imgs[]=$this->orgInfo['org_img7'];
                	?>
                	<?php foreach($v_imgs as $k=>$v): ?>
                	<?php if(!empty($v)):?>
                		<img src="<?php echo "{$CDN}{$v}";?>" class="p-lic">
                	<?php endif;?>
                	<?php endforeach;?>
                </dd>
            </dl>
            <dl>
                <dt>商家展示</dt>
                <dd>
                	<?php 
                		$d_imgs=array();
                		$d_imgs=json_decode($this->orgInfo['org_details']);
                	
                	?>
					<?php foreach($d_imgs as $k=>$v): ?>
                	<?php if(!empty($v)):?>
                		<img src="<?php echo "{$CDN}{$v}";?>" class="p-show">
                	<?php endif;?>
                	<?php endforeach;?>
                    <!--img src="images/temp/show.jpg" class="p-show"><img src="images/temp/show.jpg" class="p-show"><img src="images/temp/show.jpg" class="p-show"><img src="images/temp/show.jpg" class="p-show">
                    <img src="images/temp/show.jpg" class="p-show"><img src="images/temp/show.jpg" class="p-show"><img src="images/temp/show.jpg" class="p-show"-->
                </dd>
            </dl>


        </div>
        <!-- 底部menu-->
 		<?php echo $this->partial('public/menu.phtml'); ?>
	</section>
</section>

<script type="text/javascript">
//收藏
var isPost = false;
function collect(orgId){
    if(!isPost){
        isPost = true;
        $.ajax({
            url: '/organization/collect',
            type: 'post',
            data: {
                'orgId': orgId,
                },
            dataType: 'json',
            timeout: 200000,
            success: function (json) {
                isPost = false;
                alert(json.reason);
            },
            error: function (err) {
                isPost = false;
                alert('请求超时，请重新操作');
                return false; 
            }
        });
    }
}
</script>
